#include "test_auto.h"
#include <iostream>
#include <typeinfo>

using namespace std;


void test_and() {
	if (true and true) {
		cout << "true" << endl;
	}
	static_assert((true and true) == true);
	cout << "to gone." << endl;
}

void test_auto() {
	auto i = 5;	
	auto j = 2.3;
	auto s = "abc";
	auto x = "123";

	cout << "i=" << i << ", type=" << typeid(i).name() << endl;
	cout << "j=" << j << ", type=" << typeid(j).name() << endl;
	cout << "s=" << s << ", type=" << typeid(s).name() << endl;
	cout << "x=" << x << ", type=" << typeid(x).name() << endl;
}